Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FilterTrait #95

Closed
wants to merge 3 commits into from
Closed

Add FilterTrait #95

wants to merge 3 commits into from

Conversation

karatakis
Copy link
Collaborator

PR Info

New Features

  • Add FilterTrait

Changes

  • move FilterType to separate module

* separate StringFilter
* implement FilterTrait for enumerations Filters
* implement FilterTrait for FilterType struct

quote! {
#ident: Option<#filter_item>
#ident: Option<Box<dyn seaography::FilterTrait<Ty = #type_ident>>>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmm this can't be. The GraphQL input object should be a struct / enum, it has to be something concrete.

@billy1624 billy1624 mentioned this pull request Nov 10, 2022
@billy1624 billy1624 closed this Nov 10, 2022
@billy1624 billy1624 linked an issue Nov 11, 2022 that may be closed by this pull request
@karatakis karatakis deleted the generic-type-filter branch October 10, 2023 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A generic filter for any types and database enums support type alias
2 participants